import os
from utils.utils import *
import pytest

if __name__ == '__main__':
    # pytest.main([r'C:\Users\20176\Desktop\yuekao\case\Test_User_02.py','-s','--html=./baogao.html'])
    pytest.main([r'C:\Users\20176\Desktop\yuekao\case\Test_User_02.py', '-s', '--clean-alluredir','--alluredir=./report'])
    os.system('allure generate ./report -o ./html --clean')
    data=[r'C:\Users\20176\Desktop\yuekao\log.txt',r'C:\Users\20176\Desktop\yuekao\baogao.html',r'C:\Users\20176\Desktop\yuekao\html\index.html']
    Emails(data)